/*
* Copyright (C) 2020 ~ 2023 chaigec All Rights Reserved.
*
* Author:     chaigec <chaigec@163.com>
* Maintainer: chaigec <chaigec@163.com>

 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
*/

#include "MkMediaServer.h"
#include <MkEvent/MkEventPool.h>
#include <MkEvent/MkTimer.h>

#ifdef MkUt
#ifndef _WIN32
#include <sanitizer/asan_interface.h>
#endif
#endif

int main(int argc, char** argv)
{
#ifdef _WIN32
    WSADATA WSAData;
    WSAStartup(0x101, &WSAData);
#else
#ifdef MkUt
    __sanitizer_set_report_path("asan.log");
#endif
#endif
    CMkEventPool Pool;
    CMkTimer Timer;
    CMkMediaServer Svr(&Pool, &Timer);
    Svr.Init(argc, argv);
#ifdef _WIN32
    WSACleanup();
#endif
    return 0;
}